package cn.itsource.feign.zuul;


import cn.itsource.basic.domain.JSONResult;
import cn.itsource.domain.login.LoginInfo;
import cn.itsource.fallback.zuul.LoginInfoFeginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "service-zuul",fallback = LoginInfoFeginFallback.class)
public interface LoginInfoFegin {

    @PostMapping("logininfo/add")
    public JSONResult logininfoAdd(@RequestBody LoginInfo loginInfo);
}
